

#ifdef MINGW32

#include <windows.h>
#include <sys/userenv_my.h>
#else
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#endif

#include <stdio.h>
#include <stdlib.h>



void remSchemeAndData(){

#ifdef MINGW32

	DeleteFile("scheme.xml");
	DeleteFile("data.xml");

#else

#endif

}



int openPathScheme(){

#ifdef MINGW32

	 char s[MAX_PATH];
	 char param[MAX_PATH];

	 //sprintf(s, "%s\\explorer.exe", getenv("windir"));
	 GetWindowsDirectoryA(s, MAX_PATH);
	 sprintf(s, "%s\\explorer.exe", s);
	 sprintf(param, "%s\\Local Settings\\Application Data\\cont\\data", getHomeUser());

	 ShellExecuteA(NULL, "open", s, param, NULL, SW_SHOWNORMAL);

#else

#endif

}




int main(int argc, char *argv[]) {

	for (int i = 1; i < argc; i++) {

		if (argv[1][0] == '-')
			switch (argv[1][1]) {

				case 'c':
						remSchemeAndData();
						break;
				case 'e':
						openPathScheme();
						break;
			}
	}




}
